import config from '../../config'
import code from '../../config/code' // 引入状态码
// 在全局挂载状态码以便使用
export const state = app => {
  app.use(async(ctx, next) => {
    ctx.state = {
      code: code,
      seo: config.seo
    }
    await next()
  })
}

